package com.dsbj.mp.icardservice.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsbj.mp.icardservice.entity.ConsumeInfo;
import com.dsbj.mp.icardservice.mapper.ConsumeInfoMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


@Service
public class ConsumeInfoService extends ServiceImpl<ConsumeInfoMapper, ConsumeInfo> {

	private static Logger logger= LoggerFactory.getLogger(ConsumeInfoService.class);

	@Resource
	private ConsumeInfoMapper consumeInfoMapper;

    public List<ConsumeInfo> getByMap(Map<String, Object> map){
		List<ConsumeInfo> consumeInfos = consumeInfoMapper.getByMap(map);
    	return consumeInfos;
	}

	public Integer getIsdefaultstartend(String companyno){
    	return consumeInfoMapper.getIsdefaultstartend(companyno);
	}

	public List<ConsumeInfo> getEmployeeWeekConsumeInfo(String employeeno){
		return consumeInfoMapper.getEmployeeWeekConsumeInfo(employeeno);
	}

    public BigDecimal getConsumeMoney(Map<String, Object> map){
    	return consumeInfoMapper.getConsumeMoney(map);
	}

    public List<ConsumeInfo> getEmployeeThreeMonthConsumeInfo(Map<String, Object> map){
    	return  consumeInfoMapper.getEmployeeThreeMonthConsumeInfo(map);
	}

	public String getSysdateYearMonth(){
    	return consumeInfoMapper.getSysdateYearMonth();
	}


}
